home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / whttpd14.zip / CGI-DOS / TEST-CGI.BAT < prev   
DOS Batch File  |  1994-04-20  |  925b  |  39 lines

  1. rem
  2. rem ****************
  3. rem * TEST-CGI.BAT *
  4. rem ****************
  5. rem
  6. rem Test script for use with CGI example document included
  7. rem with server documentation. Blank line REQUIRED after
  8. rem Content-type header!
  9. rem
  10. rem Bob Denny <rdenny@netcom.com>
  11. rem 19-Apr-94
  12. rem
  13. rem Echo is OFF at script entry
  14. rem
  15. set of=%output_file%
  16. echo Content-type:text/plain > %of%
  17. echo. >> %of%
  18. echo CGI/1.0 test script report: >> %of%
  19. echo. >> %of%
  20. echo argc = %#  argv: >> %of%
  21. echo. >> %of%
  22. if NOT %#==0  echo %1 %2 %3 %4 %5 %6 %7 %8 >> %of%
  23. if %#==0  echo {empty} >> %of%
  24. echo. >> %of%
  25. echo environment variables: >> %of%
  26. echo. >> %of%
  27. set >> %of%
  28. echo. >> %of%
  29. if NOT %REQUEST_METHOD%==POST goto done
  30. echo content for POST: >> %of%
  31. echo ---- begin content ---- >> %of%
  32. type %CONTENT_FILE% >> %of%
  33. echo. >> %of%
  34. echo ----- end content ----- >> %of%
  35. echo. >> %of%
  36. :done
  37. echo -- end of report -- >> %of%
  38.  
  39.